package com.sunwayworld.basemodule.business.qualitycontrol.controlmaterial.resource;

import com.alibaba.fastjson.JSONObject;
import com.sunwayworld.basemodule.business.qualitycontrol.controlmaterial.bean.LimsControlmaterialBean;
import com.sunwayworld.basemodule.business.qualitycontrol.controlmaterial.service.LimsControlmaterialService;
import com.sunwayworld.framework.restful.data.RestJsonWrapperBean;
import com.sunwayworld.framework.support.base.resource.GenericResource;
import com.sunwayworld.framework.support.choosable.resource.GenericChoosableResource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@RequestMapping("/secure/basemodule/business/qualitycontrol/controlmaterials")
public interface LimsControlmaterialResource extends GenericResource<LimsControlmaterialService, LimsControlmaterialBean, Long>, GenericChoosableResource<LimsControlmaterialService, LimsControlmaterialBean, Long> {
    @PostMapping("/activeon")
    String activeOn(RestJsonWrapperBean bean);

    @PostMapping("/activeoff")
    String activeOff(RestJsonWrapperBean bean);

    @PostMapping("/check-ifstill-inuse")
    JSONObject checkIfStillInUse(RestJsonWrapperBean bean);
}
